export const rules = {
  Name: {
    required: true,
    message: '请输入监测点名称',
    trigger: 'change',
  },
  PowerLimit: [{
    required: true,
    message: '请输入阈值',
    trigger: 'change',
  }, {
    message: '请输入数字',
    type: 'number',
    trigger: 'change',
  }],
  PointCode: {
    required: true,
    message: '请输入采集因子',
    trigger: 'change',
  },
  Location: {
    required: true,
    message: '请输入安装位置',
    trigger: 'change',
  },
  MN: {
    required: true,
    message: '请输入MN号',
    trigger: 'change',
  },
  PowerDuration: {
    required: true,
    message: '请输入时长',
    trigger: 'change',
  },
}

export const rulesZhiLi = {
  Name: {
    required: true,
    message: '请输入治理设施名称',
    trigger: 'change',
  },
  PowerLimit: [{
    required: true,
    message: '请输入阈值',
    trigger: 'change',
  }, {
    message: '请输入数字',
    type: 'number',
    trigger: 'change',
  }],
  PointCode: {
    required: true,
    message: '请输入采集因子',
    trigger: 'change',
  },
  Location: {
    required: true,
    message: '请输入安装位置',
    trigger: 'change',
  },
  PowerDuration: {
    required: true,
    message: '请输入时长',
    trigger: 'change',
  },
}

export const rulesFenZu = {
  Name: {
    required: true,
    message: '请输入分组名称',
    trigger: 'change',
  },
  PowerLimit: [{
    required: true,
    message: '请输入阈值',
    trigger: 'change',
  }, {
    message: '请输入数字',
    type: 'number',
    trigger: 'change',
  }],
  PointCode: {
    required: true,
    message: '请输入采集因子',
    trigger: 'change',
  },
  Location: {
    required: true,
    message: '请输入安装位置',
    trigger: 'change',
  },
  PowerDuration: {
    required: true,
    message: '请输入时长',
    trigger: 'change',
  },
}
